<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>过渡属性</title>
    <style>
        img {
            width: 768px;
            height: 542px;
            transition: all 3s;
        }
        img:hover {
            width: 1000px;
            height: 800px;
        }
    </style>
</head>
<body>
    <img src="./images/huawei.jpg" alt="">
</body>
</html>